home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000010_fdc@columbia.edu_Mon Nov 24 15:36:58 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Can Kermit check for or set a timeout condition
  5. Date: 24 Nov 2003 20:31:18 GMT
  6. Organization: Columbia University
  7. Lines: 26
  8. Message-ID: <slrnbs4qkm.2c9.fdc@sesame.cc.columbia.edu>
  9. References: <f0bb0f39.0311241203.2285bc44@posting.google.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1069705878 8545 128.59.59.56 (24 Nov 2003 20:31:18 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 24 Nov 2003 20:31:18 GMT
  15. User-Agent: slrn/0.9.7.4 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14686
  17.  
  18. In article <f0bb0f39.0311241203.2285bc44@posting.google.com>,
  19. newexpectuser wrote:
  20. : I am using Kermit from Linux and I am doing ssh.
  21. : I want someway to check if the server I am connecting to is down,
  22. : instead of hanging my script in an endless loop.
  23. : Is there a way to check for this condition or tell Kermit after a
  24. : certain amount of time, if it doesn't connect to quit ?
  25. For making SSH connections, C-Kermit just starts up the external
  26. ssh client, so in this case it's the ssh client and not Kermit that's
  27. taking forever.
  28.  
  29. You might be able to alleviate this with something like:
  30.  
  31.   ping <hostname>
  32.   if failure (stop or exit)
  33.   set host /pty ....
  34.  
  35. But that only tells you if the host is up and reachable, not if an SSH
  36. server is running.  In general you can't tell in advance whether a
  37. particular connection can be made.  The only way to tell for sure is to
  38. try to make it.
  39.  
  40. - Frank
  41.